home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
os2
/
pvm34b3.zip
/
pvm34b3
/
pvm3
/
libfpvm
/
pvmfaddhost.m4
< prev
next >
Wrap
Text File
|
1997-07-22
|
530b
|
30 lines
/* $Id: pvmfaddhost.m4,v 1.2 1996/10/04 15:26:53 pvmsrc Exp $ */
#include "pvm3.h"
#include "pvm_consts.h"
void
FUNCTION(pvmfaddhost) ARGS(`STRING_ARG(host), info')
STRING_ARG_DECL(host);
int *info;
{
int dtid;
char thost[MAX_HOST_NAME + 1];
char *ptr = thost;
/*
* Copy the host name to make sure there's
* a NUL at the end.
*/
if (ftocstr(thost, sizeof(thost), STRING_PTR(host), STRING_LEN(host))) {
*info = PvmBadParam;
return;
}
*info = pvm_addhosts(&ptr, 1, &dtid);
if (*info >= 0)
*info = dtid;
}